<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        img{
            height: 60px;
            width:60px;
            background: url("./应用.png") no-repeat center center/80% 80%;
        }
    </style>
</head>
<body>

    <textarea name="" id="" cols="30" rows="10"></textarea>

    
    <img />
    

    <input type="text">

    <script src="./js/1.js"></script>

    <script>
        
        var textarea = document.getElementsByTagName("textarea")[0]
        var input = document.getElementsByTagName("input")[0]

        textarea.addEventListener("input",function(){
            console.log("input")
        })
        
        textarea.addEventListener("compositionstart",function(){
            console.log("compositionstart")
        })
        textarea.addEventListener("compositionend",function(){
            console.log("compositionend")
        })

        
        input.addEventListener("input",function(){
            console.log("input")
        })
        
        input.addEventListener("compositionstart",function(){
            console.log("compositionstart")
        })
        input.addEventListener("compositionend",function(){
            console.log("compositionend")
        })




    </script>
    
</body>
</html>